/**
 * Dear programmer:
 * When I wrote this code, only god and I knew how it worked.
 * Now, only god knows it!
 *
 * @author: Pegasus  Date: 2018/11/24 Time: 23:13
 */

import React, {Component} from 'react';
import {
  View,
  Text
} from 'react-native';
import {styles} from './ReportCellViewComponent.Style';
import {ReportTextColor} from "../../constant/ReportStatus"

export default class ReportCellViewComponent extends Component {
  render() {
    return (
      <View style={styles.cellView}>
        <View style={styles.cellLeftView}>
          <Text>
            {this.props.title}
          </Text>
        </View>
        <View style={styles.cellRightView}>
          <Text style={[{color: ReportTextColor(this.props.reportStatus)}]}>
            {this.props.context}
          </Text>
        </View>
      </View>
    )
  }
}
